.class public Lcom/waiqin365/lightapp/kehu/share/view/SideBar;
.super Landroid/view/View;


# static fields
.field public static a:[Ljava/lang/String;


# instance fields
.field public b:[Ljava/lang/String;

.field private c:Lcom/waiqin365/lightapp/kehu/share/view/d;

.field private d:I

.field private e:Landroid/graphics/Paint;

.field private f:I

.field private g:Landroid/graphics/Bitmap;

.field private h:Landroid/graphics/Bitmap;

.field private i:Landroid/graphics/drawable/Drawable;

.field private j:Landroid/widget/TextView;


# direct methods
.method static constructor <clinit>()V
    .locals 3

    const/16 v0, 0x1c

    new-array v0, v0, [Ljava/lang/String;

    const/4 v1, 0x0

    const-string/jumbo v2, "*"

    aput-object v2, v0, v1

    const/4 v1, 0x1

    const-string/jumbo v2, "A"

    aput-object v2, v0, v1

    const/4 v1, 0x2

    const-string/jumbo v2, "B"

    aput-object v2, v0, v1

    const/4 v1, 0x3

    const-string/jumbo v2, "C"

    aput-object v2, v0, v1

    const/4 v1, 0x4

    const-string/jumbo v2, "D"

    aput-object v2, v0, v1

    const/4 v1, 0x5

    const-string/jumbo v2, "E"

    aput-object v2, v0, v1

    const/4 v1, 0x6

    const-string/jumbo v2, "F"

    aput-object v2, v0, v1

    const/4 v1, 0x7

    const-string/jumbo v2, "G"

    aput-object v2, v0, v1

    const/16 v1, 0x8

    const-string/jumbo v2, "H"

    aput-object v2, v0, v1

    const/16 v1, 0x9

    const-string/jumbo v2, "I"

    aput-object v2, v0, v1

    const/16 v1, 0xa

    const-string/jumbo v2, "J"

    aput-object v2, v0, v1

    const/16 v1, 0xb

    const-string/jumbo v2, "K"

    aput-object v2, v0, v1

    const/16 v1, 0xc

    const-string/jumbo v2, "L"

    aput-object v2, v0, v1

    const/16 v1, 0xd

    const-string/jumbo v2, "M"

    aput-object v2, v0, v1

    const/16 v1, 0xe

    const-string/jumbo v2, "N"

    aput-object v2, v0, v1

    const/16 v1, 0xf

    const-string/jumbo v2, "O"

    aput-object v2, v0, v1

    const/16 v1, 0x10

    const-string/jumbo v2, "P"

    aput-object v2, v0, v1

    const/16 v1, 0x11

    const-string/jumbo v2, "Q"

    aput-object v2, v0, v1

    const/16 v1, 0x12

    const-string/jumbo v2, "R"

    aput-object v2, v0, v1

    const/16 v1, 0x13

    const-string/jumbo v2, "S"

    aput-object v2, v0, v1

    const/16 v1, 0x14

    const-string/jumbo v2, "T"

    aput-object v2, v0, v1

    const/16 v1, 0x15

    const-string/jumbo v2, "U"

    aput-object v2, v0, v1

    const/16 v1, 0x16

    const-string/jumbo v2, "V"

    aput-object v2, v0, v1

    const/16 v1, 0x17

    const-string/jumbo v2, "W"

    aput-object v2, v0, v1

    const/16 v1, 0x18

    const-string/jumbo v2, "X"

    aput-object v2, v0, v1

    const/16 v1, 0x19

    const-string/jumbo v2, "Y"

    aput-object v2, v0, v1

    const/16 v1, 0x1a

    const-string/jumbo v2, "Z"

    aput-object v2, v0, v1

    const/16 v1, 0x1b

    const-string/jumbo v2, "#"

    aput-object v2, v0, v1

    sput-object v0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->a:[Ljava/lang/String;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .locals 2

    const/4 v1, -0x1

    invoke-direct {p0, p1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->b:[Ljava/lang/String;

    iput v1, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->d:I

    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->e:Landroid/graphics/Paint;

    iput v1, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->f:I

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f0203ac

    invoke-static {v0, v1}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->g:Landroid/graphics/Bitmap;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f0203ae

    invoke-static {v0, v1}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->h:Landroid/graphics/Bitmap;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f0203ad

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->i:Landroid/graphics/drawable/Drawable;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 2

    const/4 v1, -0x1

    invoke-direct {p0, p1, p2}, Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->b:[Ljava/lang/String;

    iput v1, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->d:I

    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->e:Landroid/graphics/Paint;

    iput v1, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->f:I

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f0203ac

    invoke-static {v0, v1}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->g:Landroid/graphics/Bitmap;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f0203ae

    invoke-static {v0, v1}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->h:Landroid/graphics/Bitmap;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f0203ad

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->i:Landroid/graphics/drawable/Drawable;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 2

    const/4 v1, -0x1

    invoke-direct {p0, p1, p2, p3}, Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->b:[Ljava/lang/String;

    iput v1, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->d:I

    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->e:Landroid/graphics/Paint;

    iput v1, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->f:I

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f0203ac

    invoke-static {v0, v1}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->g:Landroid/graphics/Bitmap;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f0203ae

    invoke-static {v0, v1}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->h:Landroid/graphics/Bitmap;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f0203ad

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->i:Landroid/graphics/drawable/Drawable;

    return-void
.end method

.method private a(Landroid/graphics/Canvas;III)V
    .locals 5

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->e:Landroid/graphics/Paint;

    const-string/jumbo v1, "#1a1a1a"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->e:Landroid/graphics/Paint;

    sget-object v1, Landroid/graphics/Typeface;->DEFAULT:Landroid/graphics/Typeface;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTypeface(Landroid/graphics/Typeface;)Landroid/graphics/Typeface;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->e:Landroid/graphics/Paint;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    iget v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->f:I

    const/4 v1, -0x1

    if-eq v0, v1, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->e:Landroid/graphics/Paint;

    iget v1, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->f:I

    invoke-static {v1}, Lcom/fiberhome/gaea/client/d/k;->a(I)I

    move-result v1

    int-to-float v1, v1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->g:Landroid/graphics/Bitmap;

    iget v1, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->d:I

    if-ne p4, v1, :cond_0

    const-string/jumbo v1, "*"

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->b:[Ljava/lang/String;

    aget-object v2, v2, p4

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->h:Landroid/graphics/Bitmap;

    :cond_0
    div-int/lit8 v1, p2, 0x2

    int-to-float v1, v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->e:Landroid/graphics/Paint;

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->b:[Ljava/lang/String;

    aget-object v3, v3, p4

    invoke-virtual {v2, v3}, Landroid/graphics/Paint;->measureText(Ljava/lang/String;)F

    move-result v2

    const/high16 v3, 0x40000000    # 2.0f

    div-float/2addr v2, v3

    sub-float/2addr v1, v2

    mul-int v2, p3, p4

    add-int/2addr v2, p3

    int-to-float v2, v2

    const-string/jumbo v3, "*"

    iget-object v4, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->b:[Ljava/lang/String;

    aget-object v4, v4, p4

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_2

    div-int/lit8 v1, p2, 0x2

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v2

    div-int/lit8 v2, v2, 0x2

    sub-int/2addr v1, v2

    int-to-float v1, v1

    mul-int v2, p3, p4

    add-int/2addr v2, p3

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v3

    sub-int/2addr v2, v3

    int-to-float v2, v2

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->e:Landroid/graphics/Paint;

    invoke-virtual {p1, v0, v1, v2, v3}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    :goto_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->e:Landroid/graphics/Paint;

    invoke-virtual {v0}, Landroid/graphics/Paint;->reset()V

    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->e:Landroid/graphics/Paint;

    const/16 v1, 0xc

    invoke-static {v1}, Lcom/fiberhome/gaea/client/d/k;->a(I)I

    move-result v1

    int-to-float v1, v1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->b:[Ljava/lang/String;

    aget-object v0, v0, p4

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->e:Landroid/graphics/Paint;

    invoke-virtual {p1, v0, v1, v2, v3}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    goto :goto_1
.end method

.method private a(Lcom/waiqin365/lightapp/kehu/share/view/d;I)V
    .locals 5

    const/4 v4, 0x0

    const/4 v3, 0x0

    if-eqz p1, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->b:[Ljava/lang/String;

    aget-object v0, v0, p2

    invoke-interface {p1, v0}, Lcom/waiqin365/lightapp/kehu/share/view/d;->a(Ljava/lang/String;)V

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->j:Landroid/widget/TextView;

    if-eqz v0, :cond_1

    const-string/jumbo v0, "*"

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->b:[Ljava/lang/String;

    aget-object v1, v1, p2

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->j:Landroid/widget/TextView;

    const-string/jumbo v1, ""

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->j:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->j:Landroid/widget/TextView;

    invoke-virtual {v1}, Landroid/widget/TextView;->getMeasuredWidth()I

    move-result v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->i:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v2}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I

    move-result v2

    sub-int/2addr v1, v2

    div-int/lit8 v1, v1, 0x2

    invoke-virtual {v0, v1, v3, v3, v3}, Landroid/widget/TextView;->setPadding(IIII)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->j:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->i:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v0, v1, v4, v4, v4}, Landroid/widget/TextView;->setCompoundDrawablesWithIntrinsicBounds(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->j:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setVisibility(I)V

    :cond_1
    iput p2, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->d:I

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->invalidate()V

    return-void

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->j:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->b:[Ljava/lang/String;

    aget-object v1, v1, p2

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->j:Landroid/widget/TextView;

    invoke-virtual {v0, v3, v3, v3, v3}, Landroid/widget/TextView;->setPadding(IIII)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->j:Landroid/widget/TextView;

    invoke-virtual {v0, v4, v4, v4, v4}, Landroid/widget/TextView;->setCompoundDrawablesWithIntrinsicBounds(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V

    goto :goto_0
.end method


# virtual methods
.method public dispatchTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 7

    const/4 v6, 0x0

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v1

    iget v2, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->d:I

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->c:Lcom/waiqin365/lightapp/kehu/share/view/d;

    iget-object v4, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->b:[Ljava/lang/String;

    if-nez v4, :cond_0

    sget-object v4, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->a:[Ljava/lang/String;

    iput-object v4, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->b:[Ljava/lang/String;

    :cond_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->getHeight()I

    move-result v4

    int-to-float v4, v4

    div-float/2addr v1, v4

    iget-object v4, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->b:[Ljava/lang/String;

    array-length v4, v4

    const/16 v5, 0x1a

    invoke-static {v4, v5}, Ljava/lang/Math;->max(II)I

    move-result v4

    int-to-float v4, v4

    mul-float/2addr v1, v4

    float-to-int v1, v1

    packed-switch v0, :pswitch_data_0

    const v0, 0x7f0203ab

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->setBackgroundResource(I)V

    if-eq v2, v1, :cond_1

    if-ltz v1, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->b:[Ljava/lang/String;

    array-length v0, v0

    if-ge v1, v0, :cond_3

    invoke-direct {p0, v3, v1}, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->a(Lcom/waiqin365/lightapp/kehu/share/view/d;I)V

    :cond_1
    :goto_0
    const/4 v0, 0x1

    return v0

    :pswitch_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->invalidate()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->j:Landroid/widget/TextView;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->j:Landroid/widget/TextView;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    :cond_2
    invoke-virtual {p0, v6}, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->setBackgroundColor(I)V

    goto :goto_0

    :cond_3
    if-gez v1, :cond_4

    invoke-direct {p0, v3, v6}, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->a(Lcom/waiqin365/lightapp/kehu/share/view/d;I)V

    goto :goto_0

    :cond_4
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->b:[Ljava/lang/String;

    array-length v0, v0

    if-lt v1, v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->b:[Ljava/lang/String;

    array-length v0, v0

    add-int/lit8 v0, v0, -0x1

    invoke-direct {p0, v3, v0}, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->a(Lcom/waiqin365/lightapp/kehu/share/view/d;I)V

    goto :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
    .end packed-switch
.end method

.method protected onDraw(Landroid/graphics/Canvas;)V
    .locals 5

    const/4 v0, 0x0

    invoke-super {p0, p1}, Landroid/view/View;->onDraw(Landroid/graphics/Canvas;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->getHeight()I

    move-result v1

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->getWidth()I

    move-result v2

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->setBackgroundColor(I)V

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->b:[Ljava/lang/String;

    if-nez v3, :cond_0

    sget-object v3, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->a:[Ljava/lang/String;

    iput-object v3, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->b:[Ljava/lang/String;

    :cond_0
    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->b:[Ljava/lang/String;

    array-length v3, v3

    const/16 v4, 0x1a

    invoke-static {v3, v4}, Ljava/lang/Math;->max(II)I

    move-result v3

    div-int/2addr v1, v3

    :goto_0
    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->b:[Ljava/lang/String;

    array-length v3, v3

    if-ge v0, v3, :cond_1

    invoke-direct {p0, p1, v2, v1, v0}, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->a(Landroid/graphics/Canvas;III)V

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    return-void
.end method

.method public setFilter([Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->b:[Ljava/lang/String;

    return-void
.end method

.method public setOnTouchingLetterChangedListener(Lcom/waiqin365/lightapp/kehu/share/view/d;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->c:Lcom/waiqin365/lightapp/kehu/share/view/d;

    return-void
.end method

.method public setTextSize(I)V
    .locals 0

    iput p1, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->f:I

    return-void
.end method

.method public setTextView(Landroid/widget/TextView;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/share/view/SideBar;->j:Landroid/widget/TextView;

    return-void
.end method
